﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BotonJXC.Entity 
{
	/// <summary>
	/// OutStocks
	/// </summary>
	public class OutStocks : BaseEntity
	{
		public OutStocks()
		{
			
		}
		/// <summary>
		/// id
		/// </summary>
		public virtual int OutId{ get; set; }
        /// <summary>
        /// 编号
        /// </summary>
		public virtual string OutSn{ get; set; }
		/// <summary>
		/// 1: 配送出库
        ///2: 报损出库
		/// </summary>
		public virtual string OutType{ get; set; }
        //public virtual Int32? OutWarehouseId { get; set; }
        //public virtual Int32? InWarehouseId { get; set; }
        /// <summary>
        /// 配出分店
        /// </summary>
        public virtual Store OutStore { get; set; }
        /// <summary>
        /// 出库库存地
        /// </summary>
        public virtual Warehouse OutWarehouse { get; set; }
        /// <summary>
        /// 配入分店
        /// </summary>
        public virtual Store InStore { get; set; }
        /// <summary>
        /// 入库库存地
        /// </summary>
        public virtual Warehouse InWarehouse { get; set; }
	
		//public virtual Int32? CreaterId{ get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public virtual Account Account { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
		public virtual DateTime? CreateTime{ get; set; }
		//public virtual Int32? AuditUser{ get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public virtual Account AuditAccount { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
		public virtual string AuditStatus{ get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
		public virtual DateTime? AuditTime{ get; set; }
        /// <summary>
        /// 审核备注
        /// </summary>
		public virtual string AuditRemark{ get; set; }
	//	public virtual Int32? OrderId{ get; set; }
        /// <summary>
        /// 关联订单
        /// </summary>
        public virtual Orders Orders { get; set; }
		//public virtual Int32? InId{ get; set; }
        /// <summary>
        /// 关联入库单
        /// </summary>
        public virtual InStocks InStocks { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public virtual string Salesman { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
		public virtual string Remark{ get; set; }
		/// <summary>
        /// 单据产生地
		/// 1: 分店管理
        ///2: 配送中心
        ///3:加工间
		/// </summary>
		public virtual string CreatePlace{ get; set; }
		/// <summary>
		/// 用于数据权限控制
		/// </summary>
        public virtual Int32? OrgId { get; set; }
        public virtual Int32? OrgDepId { get; set; }
        /// <summary>
        /// 货品信息
        /// </summary>
        public virtual IList<OutStocksProducts> ProductsList { get; set; }

       /// <summary>
       /// 管理部
       /// </summary>
        public virtual Department MgDepartment { get; set; }
        /// <summary>
        /// 财务部
        /// </summary>
        public virtual Department FinDepartment { get; set; }
        /// <summary>
        /// 配送审核人
        /// </summary>
        public virtual Account OutAuditAccount { get; set; }
        /// <summary>
        /// 配送审核时间
        /// </summary>
        public virtual DateTime? OutAuditTime { get; set; }
        /// <summary>
        /// 入库审核人
        /// </summary>
        public virtual Account InAuditAccount { get; set; }
        /// <summary>
        /// 入库审核日期
        /// </summary>
        public virtual DateTime? InAuditTime { get; set; }
        /// <summary>
        /// 报损原因
        /// </summary>
        public virtual string BsCause { get; set; }
        /// <summary>
        /// 承担方式
        /// </summary>
        public virtual AssumeMode AssumeMode { get; set; }
        /// <summary>
        /// 是否生成拣货单
        /// </summary>
        public virtual string GenPicking { get; set; }
        /// <summary>
        /// 打印次数
        /// </summary>
        public virtual Int32? PrintTime { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public virtual Int32? EffDay { get; set; }
	}
}


